<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('质检单号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-quality_no" class="form-control" name="row[quality_no]" type="text" value="{$row.quality_no|htmlentities}" readonly>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('生产计划')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" value="{$row.plan.plan_name} - {$row.plan.order.order_no}" readonly>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('产品型号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" value="{$row.productModel.product.name} - {$row.productModel.name}" readonly>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('检查工序')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" value="{$row.process.name}" readonly>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('检查数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-check_quantity" data-rule="required" class="form-control" name="row[check_quantity]" type="number" value="{$row.check_quantity}" min="1" step="1">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('合格数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pass_quantity" data-rule="required" class="form-control" name="row[pass_quantity]" type="number" value="{$row.pass_quantity}" min="0" step="1">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('不合格数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fail_quantity" data-rule="required" class="form-control" name="row[fail_quantity]" type="number" value="{$row.fail_quantity}" min="0" step="1">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('检查结果')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-check_result" class="form-control selectpicker" name="row[check_result]">
                <option value="pending" {in name="row.check_result" value="pending"}selected{/in}>待检查</option>
                <option value="pass" {in name="row.check_result" value="pass"}selected{/in}>合格</option>
                <option value="fail" {in name="row.check_result" value="fail"}selected{/in}>不合格</option>
            </select>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('检查标准')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-check_standard" class="form-control" name="row[check_standard]" rows="3">{$row.check_standard|htmlentities}</textarea>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" class="form-control" name="row[remark]" rows="3">{$row.remark|htmlentities}</textarea>
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
